﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace VRM2CustomControls
{
  public class headerButton : Button
  {
    public static readonly DependencyProperty ImagePathProperty;
    public static readonly DependencyProperty TextProperty;
    public static readonly DependencyProperty headerExpanderProperty;

    static headerButton()
    {
      DefaultStyleKeyProperty.OverrideMetadata(typeof(headerButton), new FrameworkPropertyMetadata(typeof(headerButton)));
      ImagePathProperty = DependencyProperty.Register("ImagePath", typeof(string), typeof(headerButton), new UIPropertyMetadata(null));
      TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(headerButton), new UIPropertyMetadata(null));
      headerExpanderProperty = DependencyProperty.Register("headerExpander", typeof(ExpandDirection), typeof(menuHeader), new UIPropertyMetadata(null));
    }

    public ExpandDirection headerExpander
    {
      get { return (ExpandDirection)GetValue(headerExpanderProperty); }
      set { SetValue(headerExpanderProperty, value); }
    }

    public string ImagePath
    {
        get { return (string)GetValue(ImagePathProperty); }
        set { SetValue(ImagePathProperty, value); }
    }

    public string Text
    {
        get { return (string)GetValue(TextProperty); }
        set { SetValue(TextProperty, value); }
     }
  }
}
